package org.jeecg.modules.yfRepair.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.yfRepair.entity.HqYfRepairPiece;
import org.jeecg.modules.yfRepair.entity.HqYfRepair;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.yfRepair.vo.HqYfRepairPage;
import org.jeecg.modules.zhaojd.entity.HqZhaojd;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Description: 营房报修
 * @Author: jeecg-boot
 * @Date:   2020-06-13
 * @Version: V1.0
 */
public interface IHqYfRepairService extends IService<HqYfRepair> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(HqYfRepair hqYfRepair,List<HqYfRepairPiece> hqYfRepairPieceList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(HqYfRepair hqYfRepair,List<HqYfRepairPiece> hqYfRepairPieceList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	public void startFlow(HqYfRepair obj, LoginUser loginUser);

	public IPage<HqYfRepair> taskList(String userId, Integer pageNo, Integer pageSize);

	public void applyAgain(HqYfRepairPage obj, LoginUser user);

	IPage<HqYfRepair> myApplyList(Page<HqYfRepair> page, LoginUser user, HqYfRepair hqYfRepair);

	IPage<HqYfRepair> myTodoTasks(Page<HqYfRepair> page, LoginUser user, HqYfRepair hqYfRepair);

	IPage<HqYfRepair> myDoneTasks(Page<HqYfRepair> page, LoginUser user, HqYfRepair hqYfRepair);

    void complateTask(String taskId, String processInstanceId, Integer auditStatus, String auditMemo, String weixgs, String weixry);
}
